package arch.dao.impl.manager;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import arch.domain.manager.Dictionary;

public class DictionaryRowMapper implements RowMapper{

	public Object mapRow(ResultSet rs, int i) throws SQLException {
		Dictionary dictionary = new Dictionary();
		dictionary.setID(rs.getString("ID"));
		dictionary.setName(rs.getString("name"));
		dictionary.setRank(rs.getInt("rank"));
		dictionary.setPID(rs.getString("pid"));
		dictionary.setEnable(rs.getBoolean("enable"));
		dictionary.setDescription(rs.getString("description"));
		return dictionary;
	}

}
